

//友情链接

(function () {
    var html = "";
    var friendly_link = {
        "WebPage": {
            "page_sn": "profile_index"
        },
        "[]": {
            "FriendlyLinkPage": {
                "page_id@": "WebPage/id"
            },
            "FriendlyLink": {
                "id@": "[]/FriendlyLinkPage/friendly_link_id"
                //友情链接
            } } };
    send_ajax('post', '/get', friendly_link, function callback(data) {
        if (data.code == 200 && data["[]"]) {
            var data = data["[]"];
        }
        for (var i = 0; i < data.length; i++) {
            if (data[i].FriendlyLink) {
                html += " <li><a href=\"" + data[i].FriendlyLink.link + "\" target=\"_blank\" title=\"" + data[i].FriendlyLink.title + "\">" + data[i].FriendlyLink.title + " </a></li>";
            }
        }
        $('.friendly_link').html(html);
    });
})();